<!DOCTYPE html>
<html lang="ru">

<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
	<meta http-equiv="Content-Language" content="ru_RU" />
	<meta http-equiv="Pragma" content="no-cache"/>
	<meta http-equiv="Expires" content="-1"/>
	
	<title><?= '<?=' ?> bf::$html->escape(@$this->title) . (@$this->title ? ' - ' : '') <?= '?>' ?></title>
	
	<meta name="keywords" content="<?= '<?=' ?> bf::$html->escape(@$this->keywords) <?= '?>' ?>"/>
	<meta name="description" content="<?= '<?=' ?> bf::$html->escape(@$this->description) <?= '?>' ?>"/>

	<link href="http://dl.dropbox.com/u/68550731/red-sparkle/latest/red.sparkle.min.css" rel="stylesheet" type="text/css"/> 
	<!--[if IE]><link href="http://dl.dropbox.com/u/68550731/red-sparkle/latest/red.sparkle.ie.min.css" rel="stylesheet" type="text/css"/><![endif]-->
	
	<link href="<?= '<?=' ?> bf::url('css/960c12.css', false) <?= '?>' ?>" rel="stylesheet" type="text/css"/> 

	<link href="http://dl.dropbox.com/u/68550731/yellow-submarine/latest/themes/grey.min.css" rel="stylesheet" type="text/css"/> 

	<link href="<?= '<?=' ?> bf::url('applications/' . bf::$application->name . '/css/style.css', false) <?= '?>' ?>" rel="stylesheet" type="text/css"/> 

	<?= '<?' ?> if (!empty($this->css)): <?= "?>\n" ?>
		<?= "<?\n" ?>
			if (!is_array($this->css))
				$this->css = array($this->css);
			foreach ($this->css as $css)
				echo bf::$html->css(array('href' => bf::url(
					'applications/' . bf::$application->name .
					preg_replace('/^\/*/', '/', $css),
					false))
				);
		<?= "?>\n" ?>
	<?= '<?' ?> endif; <?= "?>\n" ?>

	<script>

	if (top.location.href != self.location.href)
		top.location.href = self.location.href

	</script>

	<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="http://dl.dropbox.com/u/68550731/yellow-submarine/latest/jquery.ys.min.js"></script>

	<script type="text/javascript" charset="utf-8" src="<?= '<?=' ?> bf::url('applications/' . bf::$application->name . '/js/common.js', false) <?= '?>' ?>"></script> 

	<?= '<?' ?> if (!empty($this->js)): <?= "?>\n" ?>
		<?= "<?\n" ?>
			if (!is_array($this->js))
				$this->js = array($this->js);
			foreach ($this->js as $js)
				echo bf::$html->script(array('src' => bf::url(
					'applications/' . bf::$application->name .
					preg_replace('/^\/*/', '/', $js),
					false))
				);
		<?= "?>\n" ?>
	<?= '<?' ?> endif; <?= "?>\n" ?>

</head>

<body class="controls shaded-controls">
